package com.example.lib_common.user

import com.example.lib_common.mmkv.UserMMKV


/**
 * @author ytx 
 * @createDate 2022/8/11 8:40
 * @description
 *
 * @updateUser ytx
 * @updateDate 2022/8/11 8:40
 * @updateRemark
 *
 * @version 1.0.0
 */
object UserUtils {
    /**
     * 判断用户是否登录
     */
    fun isLogin():Boolean{
        val user = UserMMKV.userInfo ?: return false
        return true
    }

    /**
     * 获取当前登录用户
     */
    fun getCurrentUser():UserEntity?{
        val user = UserMMKV.userInfo
        return user
    }


}